<%@ page import="org.bjou.UserBaseinfo" %>



<div class="fieldcontain ${hasErrors(bean: userBaseinfoInstance, field: 'fullname', 'error')} ">
	<label for="fullname">
		<g:message code="userBaseinfo.fullname.label" default="Fullname" />
		
	</label>
	<g:textField name="fullname" value="${userBaseinfoInstance?.fullname}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: userBaseinfoInstance, field: 'gentle', 'error')} ">
	<label for="gentle">
		<g:message code="userBaseinfo.gentle.label" default="Gentle" />
		
	</label>
	<g:textField name="gentle" value="${userBaseinfoInstance?.gentle}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: userBaseinfoInstance, field: 'tel', 'error')} ">
	<label for="tel">
		<g:message code="userBaseinfo.tel.label" default="Tel" />
		
	</label>
	<g:textField name="tel" value="${userBaseinfoInstance?.tel}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: userBaseinfoInstance, field: 'idCard', 'error')} ">
	<label for="idCard">
		<g:message code="userBaseinfo.idCard.label" default="Id Card" />
		
	</label>
	<g:textField name="idCard" value="${userBaseinfoInstance?.idCard}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: userBaseinfoInstance, field: 'birthday', 'error')} ">
	<label for="birthday">
		<g:message code="userBaseinfo.birthday.label" default="Birthday" />
		
	</label>
	<g:textField name="birthday" value="${userBaseinfoInstance?.birthday}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: userBaseinfoInstance, field: 'mobile', 'error')} ">
	<label for="mobile">
		<g:message code="userBaseinfo.mobile.label" default="Mobile" />
		
	</label>
	<g:textField name="mobile" value="${userBaseinfoInstance?.mobile}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: userBaseinfoInstance, field: 'email', 'error')} ">
	<label for="email">
		<g:message code="userBaseinfo.email.label" default="Email" />
		
	</label>
	<g:textField name="email" value="${userBaseinfoInstance?.email}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: userBaseinfoInstance, field: 'title', 'error')} ">
	<label for="title">
		<g:message code="userBaseinfo.title.label" default="Title" />
		
	</label>
	<g:textField name="title" value="${userBaseinfoInstance?.title}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: userBaseinfoInstance, field: 'proTitle', 'error')} ">
	<label for="proTitle">
		<g:message code="userBaseinfo.proTitle.label" default="Pro Title" />
		
	</label>
	<g:textField name="proTitle" value="${userBaseinfoInstance?.proTitle}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: userBaseinfoInstance, field: 'companyName', 'error')} ">
	<label for="companyName">
		<g:message code="userBaseinfo.companyName.label" default="Company Name" />
		
	</label>
	<g:textField name="companyName" value="${userBaseinfoInstance?.companyName}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: userBaseinfoInstance, field: 'beginYear', 'error')} ">
	<label for="beginYear">
		<g:message code="userBaseinfo.beginYear.label" default="Begin Year" />
		
	</label>
	<g:field type="number" name="beginYear" value="${fieldValue(bean: userBaseinfoInstance, field: 'beginYear')}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: userBaseinfoInstance, field: 'beginMonth', 'error')} ">
	<label for="beginMonth">
		<g:message code="userBaseinfo.beginMonth.label" default="Begin Month" />
		
	</label>
	<g:field type="number" name="beginMonth" value="${fieldValue(bean: userBaseinfoInstance, field: 'beginMonth')}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: userBaseinfoInstance, field: 'endYear', 'error')} ">
	<label for="endYear">
		<g:message code="userBaseinfo.endYear.label" default="End Year" />
		
	</label>
	<g:field type="number" name="endYear" value="${fieldValue(bean: userBaseinfoInstance, field: 'endYear')}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: userBaseinfoInstance, field: 'endMonth', 'error')} ">
	<label for="endMonth">
		<g:message code="userBaseinfo.endMonth.label" default="End Month" />
		
	</label>
	<g:field type="number" name="endMonth" value="${fieldValue(bean: userBaseinfoInstance, field: 'endMonth')}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: userBaseinfoInstance, field: 'school', 'error')} ">
	<label for="school">
		<g:message code="userBaseinfo.school.label" default="School" />
		
	</label>
	<g:textField name="school" value="${userBaseinfoInstance?.school}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: userBaseinfoInstance, field: 'degree', 'error')} ">
	<label for="degree">
		<g:message code="userBaseinfo.degree.label" default="Degree" />
		
	</label>
	<g:textField name="degree" value="${userBaseinfoInstance?.degree}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: userBaseinfoInstance, field: 'majorName', 'error')} ">
	<label for="majorName">
		<g:message code="userBaseinfo.majorName.label" default="Major Name" />
		
	</label>
	<g:textField name="majorName" value="${userBaseinfoInstance?.majorName}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: userBaseinfoInstance, field: 'majorDscp', 'error')} ">
	<label for="majorDscp">
		<g:message code="userBaseinfo.majorDscp.label" default="Major Dscp" />
		
	</label>
	<g:textField name="majorDscp" value="${userBaseinfoInstance?.majorDscp}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: userBaseinfoInstance, field: 'userGroup', 'error')} ">
	<label for="userGroup">
		<g:message code="userBaseinfo.userGroup.label" default="User Group" />
		
	</label>
	<g:select id="userGroup" name="userGroup.id" from="${org.bjou.UserGroup.list()}" optionKey="id" value="${userBaseinfoInstance?.userGroup?.id}" class="many-to-one" noSelection="['null': '']"/>
</div>

<div class="fieldcontain ${hasErrors(bean: userBaseinfoInstance, field: 'user', 'error')} ">
	<label for="user">
		<g:message code="userBaseinfo.user.label" default="User" />
		
	</label>
	<g:select id="user" name="user.id" from="${org.bjou.ShiroUser.list()}" optionKey="id" value="${userBaseinfoInstance?.user?.id}" class="many-to-one" noSelection="['null': '']"/>
</div>

<div class="fieldcontain ${hasErrors(bean: userBaseinfoInstance, field: 'jobs', 'error')} ">
	<label for="jobs">
		<g:message code="userBaseinfo.jobs.label" default="Jobs" />
		
	</label>
	<g:select name="jobs" from="${org.bjou.Job.list()}" multiple="multiple" optionKey="id" size="5" value="${userBaseinfoInstance?.jobs*.id}" class="many-to-many"/>
</div>

<div class="fieldcontain ${hasErrors(bean: userBaseinfoInstance, field: 'resumes', 'error')} ">
	<label for="resumes">
		<g:message code="userBaseinfo.resumes.label" default="Resumes" />
		
	</label>
	
<ul class="one-to-many">
<g:each in="${userBaseinfoInstance?.resumes?}" var="r">
    <li><g:link controller="userResume" action="show" id="${r.id}">${r?.encodeAsHTML()}</g:link></li>
</g:each>
<li class="add">
<g:link controller="userResume" action="create" params="['userBaseinfo.id': userBaseinfoInstance?.id]">${message(code: 'default.add.label', args: [message(code: 'userResume.label', default: 'UserResume')])}</g:link>
</li>
</ul>

</div>

